package com.zuorenke.help;

/**
 * @author Z.R.K
 * @description
 * @create 2019-05-27 16:20:28
 **/
/*
 * Copyright (c) 2014 Strong Group - 版权所有
 *
 * This software is the confidential and proprietary information of
 * Strong Group. You shall not disclose such confidential information
 * and shall use it only in accordance with the terms of the license
 * agreement you entered into with www.cnstrong.cn.
 */

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.util.zip.ZipOutputStream;

/**
 *
 * 描述:CAS工具类
 *
 * @author  WQB
 * @created 2014-4-4 下午1:55:28
 * @since   v1.0.0
 */
public class TicketUtils {
	
	
	public static String getTicket(String userId) {
		String ticket = TicketEncrypt.encode(userId);
		return ticket;
	}
	
	public static String getUserId(String ticket) {
		String userId = TicketEncrypt.decode(ticket);
		return userId;
	}
	
	public static void main(String[] args) {
		System.out.println("hel/lo/xxx.zip".replaceAll("/","|"));;
		System.out.println("OK");
	}
}
